package main

import (
	"fmt"
	"time"

	"gitee.com/dark.H/go-utils/s"
)

func main() {
	s.Str("tasklist").AsCmd().Log().GetProcess().Each(func(v int, k s.Str) {
		k.ANSIYellow().Println(v, ":")
	})
	for i := 0; i < 10; i++ {
		time.Sleep(1 * time.Second)
		fmt.Println("test -", i)
	}
}
